package com.njtoyo.taxi.admin.rest.wrapper.platform.resource;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "修改资源权限入参对象", description = "修改资源权限入参对象")
public class ResourceUpdateWrapper {
    @NotBlank(message = "名称不能为空")
    @ApiModelProperty("权限名称")
    private String name;

    @NotBlank(message = "标题不能为空")
    @ApiModelProperty("标题名称")
    private String title;

    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("是否为菜单")
    private Boolean isMenu;

    @ApiModelProperty("是否为隐藏")
    private Boolean isHidden;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("父级id")
    private Long parentId;

}
